/**
*@title:$1...$9 属性
*@tag: $1...$9 属性
*@description: 返回九个在模式匹配期间找到的、最近保存的部分。只读。
**/
function matchDemo() {
	var s;

	var re = new RegExp("d(b+)(d)", "ig");

	var str = "cdbBdbsbdbdz";

	var arr = re.exec(str);

	s = "$1 contains: " + RegExp.$1 + "\n";

	s += "$2 contains: " + RegExp.$2 + "\n";

	s += "$3 contains: " + RegExp.$3;

	return (s);

}

log(matchDemo());